package com.dxysun.design.responsiblity.builder;

public class Main
{
	public static void main(String[] args)
	{

		ConcreteHandlerA concreteHandlerA = new ConcreteHandlerA();
		ConcreteHandlerB concreteHandlerB = new ConcreteHandlerB();
		Handler.Builder builder = new Handler.Builder();
		builder.addHandler(concreteHandlerA)
				.addHandler(concreteHandlerB);

		builder.build().handlerRequest("req");
	}
}
